<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- start: Meta -->
    <meta charset="utf-8">
    <title>祥安消防系统</title>
    <meta name="description" content="Bootstrap Metro Dashboard">
    <meta name="author" content="Dennis Ji">
    <meta name="keyword"
          content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
    <!-- end: Meta -->

    <!-- start: Mobile Specific -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- end: Mobile Specific -->

    <!-- start: CSS -->
    <link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link id="base-style" href="css/style.css" rel="stylesheet">
    <link id="base-style-responsive" href="css/style-responsive.css"
          rel="stylesheet">
    <link
            href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext'
            rel='stylesheet' type='text/css'>
    <!-- end: CSS -->


    <!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <link id="ie-style" href="css/ie.css" rel="stylesheet">
    <![endif]-->

    <!--[if IE 9]>
    <link id="ie9style" href="css/ie9.css" rel="stylesheet">
    <![endif]-->

    <!-- start: Favicon -->
    <link rel="shortcut icon" href="img/favicon.ico">
    <!-- end: Favicon -->




</head>
<body>

<!-- start: Header -->
<%@include file="header.jsp"%>
<div class="container-fluid-full">
    <div class="row-fluid">

        <!-- start: Main Menu -->
        <%@include file="mainmenu.jsp"%>
        <!-- start: Content -->
        <div id="content" class="span10">
            <ul class="breadcrumb">
                <li><i class="icon-home"></i> <a href="index.jsp">主页</a> <i
                        class="icon-angle-right"></i></li>
                <li><a href="#">会员单位</a></li>
            </ul>


            <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header" data-original-title>
                        <h2>
                            <i class="halflings-icon white edit"></i><span class="break"></span>会员单位：

                        </h2>
                    </div>

                    <div class="box-content">
                        <ul class="nav tab-menu nav-tabs" id="myTab">
                            <li><a href="#info">会员单位信息</a></li>
                            <li><a href="#financial">检测现场执行</a></li>
                            <li><a href="#report">维修现场执行</a></li>
                            <li><a href="#mission">维护历史月检测现场执行</a></li>
                            <li><a href="#other">其他任务</a></li>
                            <li><a href="#phone">接电窗口</a></li>
                            <%--<li><a href="#pay">台账管理</a></li>--%>
                            <li><a href="#pact">合同管理</a></li>


                        </ul>

                        <div id="myTabContent" class="tab-content">
                            <div class="tab-pane" id="info">
                                <img src="img/u2142.png">
                                <h2>
                                    单位基本信息描述：
                                </h2>
                                <div class="box-content" >
                                    <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/companytask_saveOrUpdate">
                                        <fieldset>
                                            <input type="hidden"  name="taskCompany.id" value="<s:property value="#taskCompany.id"/>">
                                            <input type="hidden"  name="taskCompany.companyName" value="<s:property value="#taskCompany.companyName"/>">
                                            <input type="hidden" name="taskCompany.contractName" value="<s:property value="#taskCompany.contractName"/>">
                                            <input type="hidden" name="taskCompany.contractTime" value="<s:property value="#taskCompany.contractTime"/>">
                                            <input type="hidden" name="taskCompany.contractPeople" value="<s:property value="#taskCompany.contractPeople"/>">

                                            <div class="control-group">
                                                <label class="control-label"   style="text-align: left">*单位名称</label>
                                                <div class="controls">
                                                    <label class="control-label"><s:property value="#taskCompany.companyName"/></label>
                                                </div>
                                            </div>

                                            <div class="control-group">
                                                <label class="control-label"  style="text-align: left">*项目名称</label>
                                                <div class="controls">
                                                    <input class="input-xlarge focused" id="xmmc" name="taskCompany.xmmc"
                                                           value="<s:property value="#taskCompany.xmmc"/>" type="text" placeholder="请输入项目名称">
                                                </div>
                                            </div>

                                            <div class="control-group">
                                                <label class="control-label"  style="text-align: left">*单位地点</label>
                                                <div class="controls">
                                                    <input class="input-xlarge focused" id="companyName" name="taskCompany.companyAdress"
                                                           value="<s:property value="#taskCompany.companyAdress"/>" type="text" placeholder="请输入单位地址">
                                                </div>
                                            </div>


                                            <div class="control-group">
                                                <label class="control-label"  style="text-align: left">*联系方式</label>
                                                <div class="controls">
                                                    <input class="input-xlarge focused" id="companyNumber" name="taskCompany.companyNumber"
                                                           value="<s:property value="#taskCompany.companyNumber"/>"
                                                           type="text" placeholder="请输入联系方式">
                                                </div>
                                            </div>

                                        </fieldset>
                                        <div class="form-actions">
                                            <button type="submit" class="btn btn-primary">保存</button>
                                            <button class="btn">关闭</button>
                                        </div>
                                    </form>

                                </div>

                            </div>
                            <div class="tab-pane" id="pact">
                                <img src="img/u2142.png">
                                <h2>
                                   合同管理：
                                </h2>

                                <div class="box-content">
                                    <form class="form-horizontal" method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/companytask_saveOrUpdate">
                                        <fieldset>

                                            <input type="hidden" name="taskCompany.id" value="<s:property value="#taskCompany.id"/>">
                                            <input type="hidden" name="taskCompany.companyName" value="<s:property value="#taskCompany.companyName"/>">
                                            <input type="hidden" name="taskCompany.companyAdress" value="<s:property value="#taskCompany.companyAdress"/>">
                                            <input type="hidden" name="taskCompany.companyNumber" value="<s:property value="#taskCompany.companyNumber"/>">
                                            <div class="control-group" >
                                                <label class="control-label"style="text-align: left">*合同上传/下载</label>
                                                <div class="control-group">
                                                    <input type="file" id = "chooseBox" name="file">
                                                    <a href="${pageContext.request.contextPath}/download_downloadFile?fileName=<s:property
                                                       value="#taskCompany.updown"/>"><s:property value="#taskCompany.updown"/></a>
                                                    <input type="hidden" name="taskCompany.updown" value="<s:property value="#taskCompany.updown"/>">
                                                </div>

                                            </div>

                                            <div class="control-group">
                                                <label class="control-label"   style="text-align: left">*合同名称：</label>
                                                <div class="controls">
                                                    <input class="input-xlarge focused" id="contractName" name="taskCompany.contractName"
                                                           value="<s:property value="#taskCompany.contractName"/>"
                                                           type="text" placeholder="请输入">
                                                </div>
                                            </div>


                                            <div class="control-group">
                                                <label class="control-label" for="date01"  style="text-align: left">*合同签订时间：</label>
                                                <div class="controls">
                                                    <input type="text" class="input-xlarge datepicker" name="taskCompany.contractTime"
                                                           value="<s:property value="#taskCompany.contractTime"/>"
                                                           id="contractTime" >
                                                </div>
                                            </div>




                                            <div class="control-group">
                                                <label class="control-label"  style="text-align: left">*合同负责人</label>
                                                <div class="controls">
                                                    <input class="input-xlarge focused" id="contractPeople" name="taskCompany.contractPeople"
                                                           value="<s:property value="#taskCompany.contractPeople"/>"
                                                           type="text" placeholder="请输入">
                                                </div>
                                            </div>


                                            <div class="form-actions">
                                                <button type="submit" class="btn btn-primary">保存</button>
                                                <button class="btn">关闭</button>
                                            </div>
                                        </fieldset>
                                    </form>


                                </div>



                            </div>

                            <div class="tab-pane active" id="mission">
                                <img src="img/u2142.png">
                                <h2>
                                   维护月检测现场执行：
                                </h2>
                                <div class="box-content">
                                    <form class="form-horizontal" method="post" action="#">
                                        <fieldset>

                                            <div class="box-content">
                                                <table
                                                        class="table table-striped table-bordered bootstrap-datatable datatable">
                                                    <thead>
                                                    <tr>
                                                        <th>单位名称</th>
                                                        <th>执行时间</th>
                                                        <th>调度人</th>
                                                        <th>执行状态</th>
                                                        <th>操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>

                                                    <s:iterator id="jc" value="#taskWhyjList" var="jc">
                                                        <tr>
                                                            <td><s:property value="#jc.companyName"/></td>
                                                            <td class="center"><s:property value="#jc.executeTime"/></td>
                                                            <td class="center"><s:property value="#jc.taskPeople"/></td>
                                                            <td class="center"><span class="label label-success"><s:property value="#jc.nature"/></span>
                                                            </td>
                                                            <td class="center">
                                                                <a class="btn btn-info" href="${pageContext.request.contextPath}/whyjtask_editWhyjTask?taskId=<s:property value="#jc.id"/>&company=<s:property value="#jc.companyName"/>"> <i
                                                                        class="halflings-icon white edit"></i>
                                                                </a> <a class="btn btn-danger" href="${pageContext.request.contextPath}/whyjtask_deleteWhyjTask?taskId=<s:property value="#jc.id"/>"> <i
                                                                    class="halflings-icon white trash"></i>
                                                            </a></td>
                                                        </tr>

                                                    </s:iterator>


                                                    </tbody>
                                                </table>
                                            </div>

                                        </fieldset>
                                    </form>
                                </div>

                            </div>
                            <div class="tab-pane" id="phone">
                                <img src="img/u2142.png">
                                <h2>
                                   接电窗口：
                                </h2>
                                <div class="box-content">
                                    <form class="form-horizontal" method="post" action="#">
                                        <fieldset>

                                            <div class="box-content">
                                                <table
                                                        class="table table-striped table-bordered bootstrap-datatable datatable">
                                                    <thead>
                                                    <tr>
                                                        <th>单位名称</th>
                                                        <th>接电时间</th>
                                                        <th>确认人</th>
                                                        <th>任务状态</th>
                                                        <th>操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>

                                                    <s:iterator id="jc" value="#callList" var="jc">
                                                        <tr>
                                                            <td><s:property value="#jc.companyName"/></td>
                                                            <td class="center"><s:property value="#jc.callTime"/></td>
                                                            <td class="center"><s:property value="#jc.comfirmPeople"/></td>
                                                            <td class="center"><span class="label label-success"><s:property value="#jc.callstatus"/></span>
                                                            </td>
                                                            <td class="center"><a class="btn btn-info" href="${pageContext.request.contextPath}/calltask_editCall?taskId=<s:property value="#jc.id"/>">
                                                                <i class="halflings-icon white edit"></i>
                                                            </a> <a class="btn btn-danger" href="${pageContext.request.contextPath}/calltask_deleteCall?taskId=<s:property value="#jc.id"/>"> <i
                                                                    class="halflings-icon white trash"></i>
                                                            </a></td>
                                                        </tr>

                                                    </s:iterator>


                                                    </tbody>
                                                </table>
                                            </div>

                                        </fieldset>
                                    </form>
                                </div>

                            </div>
                            <div class="tab-pane" id="other">
                                <img src="img/u2142.png">
                                <h2>
                                    其他任务：
                                </h2>
                                <div class="box-content">
                                    <form class="form-horizontal" method="post" action="#">
                                        <fieldset>

                                            <div class="box-content">
                                                <table
                                                        class="table table-striped table-bordered bootstrap-datatable datatable">
                                                    <thead>
                                                    <tr>
                                                        <th>单位名称</th>
                                                        <th>执行时间</th>
                                                        <th>执行人</th>
                                                        <th>执行状态</th>
                                                        <th>操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>

                                                    <s:iterator id="jc" value="#taskOtherList" var="jc">
                                                        <tr>
                                                            <td><s:property value="#jc.companyName"/></td>
                                                            <td class="center"><s:property value="#jc.taskTime"/></td>
                                                            <td class="center"><s:property value="#jc.taskPeople"/></td>
                                                            <td class="center"><span class="label label-success"><s:property value="#jc.taskStatus"/></span>
                                                            </td>
                                                            <td class="center">
                                                                <a class="btn btn-info" href="${pageContext.request.contextPath}/othertask_editOther?taskId=<s:property value="#jc.id"/>"> <i
                                                                        class="halflings-icon white edit"></i>
                                                                </a> <a class="btn btn-danger" href="${pageContext.request.contextPath}/othertask_deleteOther?taskId=<s:property value="#jc.id"/>"> <i
                                                                    class="halflings-icon white trash"></i>
                                                            </a></td>
                                                        </tr>

                                                    </s:iterator>

                                                    </tbody>
                                                </table>
                                            </div>

                                        </fieldset>
                                    </form>
                                </div>

                            </div>
                            <div class="tab-pane" id="report">
                                <img src="img/u2142.png">
                                <h2>
                                    维修现场执行：
                                </h2>
                                <div class="box-content">
                                    <form class="form-horizontal" method="post" action="#">
                                        <fieldset>

                                            <div class="box-content">
                                                <table
                                                        class="table table-striped table-bordered bootstrap-datatable datatable">
                                                    <thead>
                                                    <tr>
                                                        <th>单位名称</th>
                                                        <th>执行时间</th>
                                                        <th>调度人</th>
                                                        <th>执行状态</th>
                                                        <th>操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    <s:iterator id="jc" value="#taskWxList" var="jc">
                                                        <tr>
                                                            <td><s:property value="#jc.companyName"/></td>
                                                            <td class="center"><s:property value="#jc.executeTime"/></td>
                                                            <td class="center"><s:property value="#jc.taskPeople"/></td>
                                                            <td class="center"><span class="label label-success"><s:property value="#jc.nature"/></span>
                                                            </td>
                                                            <td class="center">
                                                                <a class="btn btn-info" href="${pageContext.request.contextPath}/wxtask_editwxTask?taskId=<s:property value="#jc.id"/>"> <i
                                                                        class="halflings-icon white edit"></i>
                                                                </a> <a class="btn btn-danger" href="${pageContext.request.contextPath}/wxtask_deletewxTask?taskId=<s:property value="#jc.id"/>"> <i
                                                                    class="halflings-icon white trash"></i>
                                                            </a></td>
                                                        </tr>

                                                    </s:iterator>
                                                    </tbody>
                                                </table>
                                            </div>

                                        </fieldset>
                                    </form>
                                </div>
                            </div>
                            <div class="tab-pane" id="financial">
                                <img src="img/u2142.png">
                                <h2>
                                    检测现场执行：
                                </h2>
                                <div class="box-content">
                                    <form class="form-horizontal" method="post" action="#">
                                        <fieldset>

                                            <div class="box-content">
                                                <table
                                                        class="table table-striped table-bordered bootstrap-datatable datatable">
                                                    <thead>
                                                    <tr>
                                                        <th>单位名称</th>
                                                        <th>执行时间</th>
                                                        <th>调度人</th>
                                                        <th>执行状态</th>
                                                        <th>操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    <s:iterator id="jc" value="#taskJcList" var="jc">
                                                        <tr>
                                                            <td><s:property value="#jc.companyName"/></td>
                                                            <td class="center"><s:property value="#jc.executeTime"/></td>
                                                            <td class="center"><s:property value="#jc.taskPeople"/></td>
                                                            <td class="center"><span class="label label-success"><s:property value="#jc.nature"/></span>
                                                            </td>
                                                            <td class="center">
                                                                <a class="btn btn-info" href="${pageContext.request.contextPath}/jctask_editJcTask?taskId=<s:property value="#jc.id"/>"> <i
                                                                    class="halflings-icon white edit"></i>
                                                            </a> <a class="btn btn-danger" href="${pageContext.request.contextPath}/jctask_deleteJcTask?taskId=<s:property value="#jc.id"/>"> <i
                                                                    class="halflings-icon white trash"></i>
                                                            </a></td>
                                                        </tr>

                                                    </s:iterator>

                                                    </tbody>
                                                </table>
                                            </div>

                                        </fieldset>
                                    </form>
                                </div>

                            </div>
                            <%--<div class="tab-pane" id="pay">--%>
                                <%--<img src="img/u2142.png">--%>
                                <%--<h2>--%>
                                    <%--台账管理：--%>
                                <%--</h2>--%>

                                <%--<form class="form-horizontal" id="formjc" method="post" action="${pageContext.request.contextPath}/whyjtask_saveTz">--%>
                                    <%--<fieldset>--%>

                                        <%--<div class="control-group">--%>
                                            <%--<table class="table table-striped table-bordered bootstrap-datatable">--%>
                                                <%--<thead>--%>
                                                <%--<tr>--%>
                                                    <%--<th>材料名称</th>--%>
                                                    <%--<th>选择</th>--%>


                                                <%--</tr>--%>
                                                <%--</thead>--%>
                                                <%--<tbody>--%>


                                                <%--<s:iterator id="jc" value="#tzList" var="jc" status="st">--%>

                                                    <%--<tr>--%>
                                                        <%--<td>--%>
                                                            <%--<input type="hidden" id="<s:property value="#jc.tzName"/>"--%>
                                                                   <%--name="WhyjtzList[${st.index}].tzName"--%>
                                                                   <%--value="<s:property value="#jc.tzName"/>"><s:property value="#jc.tzName"/>--%>
                                                        <%--</td>--%>

                                                        <%--<td>--%>
                                                            <%--<input type="checkbox" id="1"--%>
                                                                   <%--name="WhyjtzList[${st.index}].ischecked"--%>
                                                                   <%--value="1" >--%>
                                                            <%--<input type="hidden" name="WhyjtzList[${st.index}].tzContext"--%>
                                                                                     <%--value="<s:property value="#jc.tzContext"/>">--%>
                                                            <%--<input type="hidden" name="WhyjtzList[${st.index}].CompanyName"--%>
                                                                   <%--value="<s:property value="#taskCompany.companyName"/>">--%>
                                                        <%--</td>--%>

                                                        <%--&lt;%&ndash;<td>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;<input type="hidden" class="input-small"  name="WhyjtzList[${st.index}].tzModel" >&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;</td>&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;<td>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;<input type="hidden"  class="input-small" name="WhyjtzList[${st.index}].tzCj" >&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;</td>&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;<td>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;<input type="hidden"  class="input-small" name="WhyjtzList[${st.index}].tzCount" >&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;</td>&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;<td>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;<select hidden id="ja<s:property value="#jc.id"/>" name="WhyjtzList[${st.index}].tzType" >&ndash;%&gt;--%>
                                                                <%--&lt;%&ndash;<option <s:if test="'月检测' == #jc.tzType">selected</s:if>>月检测</option>&ndash;%&gt;--%>
                                                                <%--&lt;%&ndash;<option <s:if test="'季度检测' == #jc.tzType">selected</s:if>>季度检测</option>&ndash;%&gt;--%>
                                                                <%--&lt;%&ndash;<option <s:if test="'年检测' == #jc.tzType">selected</s:if>>年检测</option>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;</select>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;</td>&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;<td>&ndash;%&gt;--%>
                                                            <%--&lt;%&ndash;<input type="hidden" class="input-small datepicker" id="<s:property value="#jc.id"/>"&ndash;%&gt;--%>
                                                                   <%--&lt;%&ndash;name="WhyjtzList[${st.index}].tzLastTime">&ndash;%&gt;--%>
                                                        <%--&lt;%&ndash;</td>&ndash;%&gt;--%>
                                                    <%--</tr>--%>
                                                <%--</s:iterator>--%>


                                                <%--</tbody>--%>

                                            <%--</table>--%>

                                        <%--</div>--%>
                                    <%--</fieldset>--%>
                                    <%--<div class="form-actions">--%>
                                        <%--<button class="btn btn-primary" onclick="checkForm()">保存</button>--%>
                                        <%--<button class="btn">关闭</button>--%>
                                    <%--</div>--%>
                                <%--</form>--%>


                            <%--</div>--%>
                        </div>
                    </div>
                </div>
                <!--/span-->

            </div>

        </div>
        <!--/.fluid-container-->

        <!-- end: Content -->
    </div>
    <!--/#content.span10-->
</div>
<!--/fluid-row-->

<%@include file="footer.jsp"%>

<!-- start: JavaScript-->

<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-migrate-1.0.0.min.js"></script>

<script src="js/jquery-ui-1.10.0.custom.min.js"></script>

<script src="js/jquery.ui.touch-punch.js"></script>

<script src="js/modernizr.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.cookie.js"></script>

<script src='js/fullcalendar.min.js'></script>

<script src='js/jquery.dataTables.min.js'></script>

<script src="js/excanvas.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.stack.js"></script>
<script src="js/jquery.flot.resize.min.js"></script>

<script src="js/jquery.chosen.min.js"></script>

<script src="js/jquery.uniform.min.js"></script>

<script src="js/jquery.cleditor.min.js"></script>

<script src="js/jquery.noty.js"></script>

<script src="js/jquery.elfinder.min.js"></script>

<script src="js/jquery.raty.min.js"></script>

<script src="js/jquery.iphone.toggle.js"></script>

<script src="js/jquery.uploadify-3.1.min.js"></script>

<script src="js/jquery.gritter.min.js"></script>

<script src="js/jquery.imagesloaded.js"></script>

<script src="js/jquery.masonry.min.js"></script>

<script src="js/jquery.knob.modified.js"></script>

<script src="js/jquery.sparkline.min.js"></script>

<script src="js/counter.js"></script>

<script src="js/retina.js"></script>

<script src="js/custom.js"></script>


<script>

    function bgjfSubmit() {
        if($("#jgybCB").prop("checked")){
            $("#jgybCB").value = 1;

        }else {

            $("#jgybCB").value = 0;
        }



        $("#bgjfForm").submit();


    }



</script>
<!-- end: JavaScript-->

</body>
</html>